import request from '@/utils/request'

// 查询生产线关联仓库列表
export function listWorkshopcangku(query) {
  return request({
    url: '/system/workshopcangku/list',
    method: 'get',
    params: query
  })
}

// 查询生产线关联仓库详细
export function getWorkshopcangku(wcId) {
  return request({
    url: '/system/workshopcangku/' + wcId,
    method: 'get'
  })
}

// 新增生产线关联仓库
export function addWorkshopcangku(data) {
  return request({
    url: '/system/workshopcangku',
    method: 'post',
    data: data
  })
}

// 修改生产线关联仓库
export function updateWorkshopcangku(data) {
  return request({
    url: '/system/workshopcangku',
    method: 'put',
    data: data
  })
}

// 删除生产线关联仓库
export function delWorkshopcangku(wcId) {
  return request({
    url: '/system/workshopcangku/' + wcId,
    method: 'delete'
  })
}

// 导出生产线关联仓库
export function exportWorkshopcangku(query) {
  return request({
    url: '/system/workshopcangku/export',
    method: 'get',
    params: query
  })
}